﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EmotionRecognitionGui
{//
    public partial class MainMenuReviewer : MainMenu
    {
        GuiManager guiManager;
        public MainMenuReviewer()
        {
            try
            {

                this.guiManager = GuiManager.Instance;
                InitializeComponent();
            }
            catch (Exception e)
            {
                MessageBox.Show("Error: " + e.ToString());
            }
        }

        protected void imageAnalysisButton_Click(object sender, EventArgs e)
        {
            guiManager.ImageAnalysisGui.DisposeObjectsInstance();
            guiManager.ImageAnalysisGui.ReEnter();
            guiManager.SwitchForms(this, guiManager.ImageAnalysisGui);
        }

        new protected void buttonBack_Click(object sender, EventArgs e)
        {
            guiManager.SwitchForms(this, guiManager.userLoginGui);
        }

        private void buttonBack_Click_1(object sender, EventArgs e)
        {

        }

        private void button2_Click_1(object sender, EventArgs e)
        {
            guiManager.statistics.EnterStatistics(this);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            guiManager.about.ReEnter(this);
        }

       
    }
}
